package com.egao.common.module.workLog.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author shu
 * @since 2025-03-18
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("annual_plan")
@ApiModel(value="AnnualPlan对象", description="")
public class AnnualPlan implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField("year")
    private Integer year;

    @TableField("sequence")
    private Integer sequence;

    @TableField("title")
    private String title;

    @TableField("description")
    private String description;

    @TableField("type")
    private Integer type;

    @TableField("user_department")
    private Integer userDepartment;

    @TableField("start_time")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date startTime;

    @TableField("end_time")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date endTime;

    @TableField("create_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @TableField("update_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    @ApiModelProperty(value = "逻辑删除 0正常 1删除")
    @TableField("deleted")
    @TableLogic
    private Integer deleted;


}
